package com.wcf.service.facade;

import com.wcf.model.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by hadoop on 2016/1/9.
 */
public class UserServiceFacadeTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext-client.xml");
        UserServiceFacade userService = applicationContext.getBean("userWsClient",UserServiceFacade.class);
        User user = userService.getUserByName("jspdba");
        if(user!=null){
            System.out.println(user.getName());
        }else{
            System.out.println("null jspdba");
        }
    }
}
